package com.linktel.productionLine.service;

import com.linktel.productionLine.dao.HolidayStatisticsDao;
import com.linktel.productionLine.entity.HolidayStatistics;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
@AllArgsConstructor
public class HolidayStatisticsService {

    private HolidayStatisticsDao holidayStatisticsDao;

    public List<HolidayStatistics> listHolidayStatistics() {
        return holidayStatisticsDao.listHolidayStatistics();
    }

    public Integer updateHolidayStatistics(HolidayStatistics holidayStatistics) {
        return holidayStatisticsDao.updateHolidayStatistics(holidayStatistics);
    }
}
